import axios from '@/libs/api.request'

// 定义了一个api
export const login = (useremail, password) => {
  return axios.request({
    url: '/user/login/',
    data: {email: useremail, password: password},
    method: 'post'
  })
}

export const registerapi = (email, username, password, auth) => {
	return axios.request({
		url: '/user/register/',
		data: {email: email, username:username, password:password, auth:auth},
		method: 'post'
	})
}